
#include <cstdlib>
#include <iostream>
#include <fstream>
#include "arch_linux.h"

int main() {
    Arch_linux hyperbola;
    hyperbola.read_variables_from_file();

    hyperbola.install_packages("cryptsetup");
    hyperbola.addService("irqbalance", "default");
    hyperbola.addService("libvirtd", "default");

    hyperbola.generate_locale_us_ru();
    hyperbola.create_files_hostname_and_hosts();
    hyperbola.configurate_mkinitcpio();

    hyperbola.modprobe("kvm_intel");
    hyperbola.modprobe("kvm_amd");

    hyperbola.add_user(hyperbola.get_user_name());
    hyperbola.set_user_password("root");
    hyperbola.set_user_password(hyperbola.get_user_name());
    hyperbola.add_user_in_group(hyperbola.get_user_name(), "kvm");
    hyperbola.add_user_in_group(hyperbola.get_user_name(), "libvirt");
    

    hyperbola.chmod_nftables();
    hyperbola.install_packages("grub");
    hyperbola.configurate_grub();
    hyperbola.install_grub_to_disk();
    hyperbola.link_boot_partion();
    
    // End install
    system("echo \"\n[SUCCESS! You can reboot! =D ]\"");

    return 0;
}





  